Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix fetch task not signaling shard EOF #4714

Merged
merged 2 commits into from
Mar 12, 2024
Merged

Conversation

guilload
Copy link
Member

@guilload guilload commented Mar 11, 2024

Description

The statement has_reached_eof = shard_state.is_closed() && to_position_inclusive >= *replication_position was broken for shards closed while already drained because the initialization value of to_position_inclusive was Beginning.

How was this PR tested?

Added unit test
Tested on Cicada, it helps, but there is another issue

@guilload guilload linked an issue Mar 11, 2024 that may be closed by this pull request
@guilload guilload requested a review from fulmicoton March 12, 2024 00:05
@guilload guilload force-pushed the guilload/closed-shards branch from 80fbf03 to 9978286 Compare March 12, 2024 12:34
@guilload guilload merged commit eb3099d into main Mar 12, 2024
4 checks passed
@guilload guilload deleted the guilload/closed-shards branch March 12, 2024 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Closed shards are not deleted
2 participants